home *** CD-ROM | disk | FTP | other *** search
- /* $Id: i3dex.h 1.1 1995/06/27 15:07:57 YannPC Exp $ */
- /*****************************************************************************\
- * *
- * I3DEx.h *
- * I3DExtension definition *
- * I3DExDataExchanger definition *
- * *
- * Copyright (c) 1995, Ray Dream, Inc. All rights reserved. *
- * *
- \*****************************************************************************/
-
- #ifndef __I3DEX__
- #define __I3DEX__
-
- #ifndef __3DCOTYPE__
- #include "3DCoType.h"
- #endif
-
- struct IShUtilities;
-
- //****** Globally Unique Ids **************************************************
-
- DEFINE_GUID(IID_I3DExtension, 0xB0210D00L, 0x3A02, 0x101C, 0x88, 0x5F, 0x04, 0x02, 0x1C, 0x00, 0x70, 0x02);
- DEFINE_GUID(IID_I3DExDataExchanger, 0xB295B680L, 0x3A02, 0x101C, 0x88, 0x5F, 0x04, 0x02, 0x1C, 0x00, 0x70, 0x02);
-
-
- /*****************************************************************************\
- * I3DExtension *
- * *
- * Contains utility methods that are complements to IUnkown, like Clone() *
- * *
- * *
- \*****************************************************************************/
-
- #undef INTERFACE
- #define INTERFACE I3DExtension
-
- DECLARE_INTERFACE_(I3DExtension, IUnknown) {
- // IUnknown methods
- STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
- STDMETHOD_(ULONG, AddRef) (THIS) PURE;
- STDMETHOD_(ULONG, Release) (THIS) PURE;
-
- // I3DExtension methods
- STDMETHOD(ShellUtilitiesInit) (THIS_ IShUtilities* shellUtilities) PURE;
- STDMETHOD_(I3DExtension*, Clone) (THIS) PURE;
- };
-
-
- /*****************************************************************************\
- * I3DExDataExchanger *
- * *
- * Allows the Shell to handle the UI of the 3D Component and the *
- * Component's public data. *
- * Handles the communication between the 3D Component and the Shell *
- * *
- * All other I3DEx... interfaces inherit from this one *
- * *
- \*****************************************************************************/
-
- typedef struct ExtensionData {
- ULONG fType;
- ULONG fID;
- } ExtensionData;
-
- typedef struct ExtensionDataMap {
- short fNbExtensionData; // Number of ExtensionData
- ExtensionData fExtensionData[1]; // Array with fNbExtensionData entries
- } ExtensionDataMap;
-
-
- #undef INTERFACE
- #define INTERFACE I3DExDataExchanger
-
- DECLARE_INTERFACE_(I3DExDataExchanger, I3DExtension) {
- // IUnknown methods
- STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
- STDMETHOD_(ULONG, AddRef) (THIS) PURE;
- STDMETHOD_(ULONG, Release) (THIS) PURE;
-
- // I3DExtension methods
- STDMETHOD_(I3DExtension*, Clone) (THIS) PURE;
- STDMETHOD(ShellUtilitiesInit) (THIS_ IShUtilities* shellUtilities) PURE;
-
- // I3DExDataExchanger methods
- STDMETHOD_(ExtensionDataMap*, GetExtensionDataMap) (THIS) PURE; // Return NULL if GetResID is to be used
- STDMETHOD_(void*, GetExtensionDataBuffer) (THIS) PURE;
- STDMETHOD(ExtensionDataChanged) (THIS) PURE;
- STDMETHOD(HandleEvent) (THIS_ ULONG sourceID) PURE;
- STDMETHOD_(short, GetResID) (THIS) PURE;
- };
-
- #endif
-
-